package com.kcht.np.vo.user;

import com.kcht.np.entity.SysUser;
import lombok.*;

import java.util.List;

/**
  * @Description: 登录成功后，用户详细 Vo 模型
  * @Package:     com.kcht.np.mp.vo
  * @Author:      liuqi
  * @CreateDate:  2020/4/1 0:17
 */

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SysUserVo extends SysUser implements java.io.Serializable {

    /**
     * 部门名称
     *
     * @date: 2019/12/11 22:15
     */
    private String departmentName;

    /**
     * 角色名称，列表
     *
     * @date: 2019/12/11 22:15
     */
    private List<RoleVo> roles;

    @Getter
    @Setter
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    public static class RoleVo {

        private Long rid;

        private String roleName;

        private String description;

    }

}
